#!/bin/bash

WorkDir="/home/hzz"
QuotaTestDir="${WorkDir}/shell_script/quota_io_test"
CIDir="${WorkDir}/orcafs-test/quota_cli/roles"

ci_env_dir="${CIDir}/env_prepare/files/"

ci_write_dir="${CIDir}/fs_quota_write/files"
ci_truncate_dir="${CIDir}/fs_quota_truncate/files"
ci_link_dir="${CIDir}/fs_quota_link/files"
ci_chown_dir="${CIDir}/fs_quota_chown/files"
ci_rename_dir="${CIDir}/fs_quota_rename/files"

for file in "0_source_env.sh"  "1_check_env.sh"  "2_clean_quota.sh"  "3_common_func.sh"
do
    /usr/bin/cp -f ${QuotaTestDir}/${file} ${ci_env_dir}/
done
 
/usr/bin/cp -f ${QuotaTestDir}/write_empty_dir.sh ${ci_write_dir}/
/usr/bin/cp -f ${QuotaTestDir}/write_non_empty_dir.sh ${ci_write_dir}/

/usr/bin/cp -f ${QuotaTestDir}/truncate_test.sh ${ci_truncate_dir}/
/usr/bin/cp -f ${QuotaTestDir}/link_test.sh ${ci_link_dir}/
/usr/bin/cp -f ${QuotaTestDir}/chown_test.sh ${ci_chown_dir}/


if [ -d ${ci_rename_dir} ]; then
    rm -f ${ci_rename_dir}/*
    /usr/bin/cp -f ${QuotaTestDir}/rename/* ${ci_rename_dir}/
fi

